package com.powernode.service;

import com.powernode.domain.Category;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface CategoryService extends IService<Category>{


    /**
     * 查询所有种类
     * @return
     */
    List<Category> queryCategoryList();

    /**
     *
     * @param category
     * @return
     */
    Boolean saveCategory(Category category);

    /**
     * 根据分类Id修改分类
     * @param category
     * @return
     */
    Boolean modifyCategoryById(Category category);

    /**
     * 根据分类Id删除分类
     * @param categoryId
     * @return
     */
    Boolean removeCategoryById(Long categoryId);

    /**
     * 查询一级分类
     * @return
     */
    List<Category> queryFirstCategoryList();

}
